home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_009 / proff / defs.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  2KB  |  92 lines

  1.  
  2. /*
  3.  * defs.h
  4.  *
  5.  * #define rainbow    - rainbow CP/M-86 version
  6.  * #define vms        - vms version (predefined by VAX11C compiler)
  7.  * #define unix        - unix version
  8.  */
  9.  
  10. /*
  11.  *  Synonyms for ASCII control characters
  12.  *
  13.  */
  14.  
  15. #define    BACKSPACE    8
  16. #define    BEL        7
  17. #define BELL        7
  18. #define    BLANK        32
  19. #define    CARRIAGE_RETURN    13
  20. #define    NEWLINE        10
  21. #define    RUBOUT        127
  22. #define    TAB        9
  23.  
  24. /*
  25.  * misc. definitions
  26.  *
  27.  */
  28.  
  29. #define    EOS        0
  30. #define    HUGE        30000
  31. #define    NO        0
  32. #define    OK        0
  33. #define    YES        1
  34. #define FALSE        0
  35. #define TRUE        1
  36. #define    FILENAMESIZE    50
  37. #define    MAXCHARS    20
  38. #define MAXLINE        256
  39. #define MAXTOK        80
  40. #define ARB        MAXLINE
  41.  
  42. #define    MAXCARD        MAXLINE-1
  43. #define    MAXNAME        FILENAMESIZE
  44.  
  45. #define    NCHARS        33
  46. #define MAXOFILES    12
  47.  
  48. #define    ARGFLAG    '$' 
  49. #define    INSIZE    MAXLINE 
  50. #define    MAXOUT    2*MAXLINE 
  51. #define    MAXDEF    200 
  52. #define    NFILES    MAXOFILES-4
  53. #define    PAGENUM        '#' 
  54. #define    CURRENTDATE    '%' 
  55. #define ESCAPE        '@'
  56. #define VESCAPE        '$'
  57. #define    PAGEJECT    12          /* 12 is ASCII formfeed (control-L) */
  58. #define    PAGEWIDTH    65 
  59. #define    PAGELEN        62 
  60. #define    BUFSIZE        512            /* push back buffer */
  61. /*
  62.  * lexical analyser values
  63.  *
  64.  * include lexical analyser return constants
  65.  * generated by ltb.
  66.  *
  67.  */
  68. #include "lextab.d"        /* expended format & roff & runoff */
  69.  
  70. #define    UNKNOWN    999
  71. #define MACRO    0
  72. #define NEGATED -1
  73. #define    LEFT    1 
  74. #define    CENTER    2 
  75. #define    RIGHT    3
  76.  
  77. /*
  78.  * structure definition for contents linked list
  79.  *
  80.  */
  81.  
  82. struct clist {        /* list struct for contents  */
  83.     char level;
  84.     char *str;
  85.     int  page;
  86.     struct clist *nextc;
  87. };
  88.  
  89. #undef putchar
  90. #define putchar(c) putc((c),poutput);
  91.  
  92.